/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.agh.air.bpel2bpmn.comparator.impl;

import org.agh.air.bpel2bpmn.comparator.AbstractComparator;
import org.agh.air.bpel2bpmn.exception.PatternNotFoundException;
import org.w3c.dom.Node;

/**
 *
 * @author paletz
 */
public class OtherwiseComparator extends AbstractComparator{

   /*           <otherwise>
                    <empty/>
                </otherwise>
   */

    @Override
    public String compare(Node node) throws PatternNotFoundException {
        if(node.getNodeName().equals(OTHERWISE)) {
            return "otherwise" + LTMP + RTMP;
        }
            
        
        throw new PatternNotFoundException();
    }
       
}
